//
//  SearViewController.m
//  one class
//
//  Created by M on 17/9/27.
//  Copyright © 2017年 1512. All rights reserved.
//

#import "SearViewController.h"

@interface SearViewController ()
@end

@implementation SearViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    //NSLog(@"搜索结果");
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return _arr.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    UITableViewCell *cell = [[UITableViewCell alloc]initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:nil];
    NSDictionary *dict = [NSDictionary dictionary];
    dict = _arr[indexPath.row];
    cell.textLabel.text = [dict objectForKey:@"name"];
   cell.detailTextLabel.text = [dict objectForKey:@"tel"];
    
    return cell;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
